<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>百威接口文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */

/* RESET
=============================================================================*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
}

/* BODY
=============================================================================*/

body {
  font-family: Helvetica, arial, freesans, clean, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 20px;
  max-width: 960px;
  margin: 0 auto;
}

body>*:first-child {
  margin-top: 0 !important;
}

body>*:last-child {
  margin-bottom: 0 !important;
}

/* BLOCKS
=============================================================================*/

p, blockquote, ul, ol, dl, table, pre {
  margin: 15px 0;
}

/* HEADERS
=============================================================================*/

h1, h2, h3, h4, h5, h6 {
  margin: 20px 0 10px;
  padding: 0;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
}

h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
  font-size: inherit;
}

h1 {
  font-size: 28px;
  color: #000;
}

h2 {
  font-size: 24px;
  border-bottom: 1px solid #ccc;
  color: #000;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 14px;
}

h6 {
  color: #777;
  font-size: 14px;
}

body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
  margin-top: 0;
  padding-top: 0;
}

a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  margin-top: 0;
  padding-top: 0;
}

h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
  margin-top: 10px;
}

/* LINKS
=============================================================================*/

a {
  color: #4183C4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LISTS
=============================================================================*/

ul, ol {
  padding-left: 30px;
}

ul li > :first-child, 
ol li > :first-child, 
ul li ul:first-of-type, 
ol li ol:first-of-type, 
ul li ol:first-of-type, 
ol li ul:first-of-type {
  margin-top: 0px;
}

ul ul, ul ol, ol ol, ol ul {
  margin-bottom: 0;
}

dl {
  padding: 0;
}

dl dt {
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  padding: 0;
  margin: 15px 0 5px;
}

dl dt:first-child {
  padding: 0;
}

dl dt>:first-child {
  margin-top: 0px;
}

dl dt>:last-child {
  margin-bottom: 0px;
}

dl dd {
  margin: 0 0 15px;
  padding: 0 15px;
}

dl dd>:first-child {
  margin-top: 0px;
}

dl dd>:last-child {
  margin-bottom: 0px;
}

/* CODE
=============================================================================*/

pre, code, tt {
  font-size: 12px;
  font-family: Consolas, "Liberation Mono", Courier, monospace;
}

code, tt {
  margin: 0 0px;
  padding: 0px 0px;
  white-space: nowrap;
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px;
}

pre>code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: none;
  background: transparent;
}

pre {
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px;
}

pre code, pre tt {
  background-color: transparent;
  border: none;
}

kbd {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #DDDDDD;
    background-image: linear-gradient(#F1F1F1, #DDDDDD);
    background-repeat: repeat-x;
    border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
    border-image: none;
    border-radius: 2px 2px 2px 2px;
    border-style: solid;
    border-width: 1px;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    line-height: 10px;
    padding: 1px 4px;
}

/* QUOTES
=============================================================================*/

blockquote {
  border-left: 4px solid #DDD;
  padding: 0 15px;
  color: #777;
}

blockquote>:first-child {
  margin-top: 0px;
}

blockquote>:last-child {
  margin-bottom: 0px;
}

/* HORIZONTAL RULES
=============================================================================*/

hr {
  clear: both;
  margin: 15px 0;
  height: 0px;
  overflow: hidden;
  border: none;
  background: transparent;
  border-bottom: 4px solid #ddd;
  padding: 0;
}

/* TABLES
=============================================================================*/

table th {
  font-weight: bold;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 6px 13px;
}

table tr {
  border-top: 1px solid #ccc;
  background-color: #fff;
}

table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

/* IMAGES
=============================================================================*/

img {
  max-width: 100%
}
</style>
</head>
<body>
<h1 id="baseurl-">baseUrl：</h1>
<h2 id="-">正式版</h2>
<pre><code>使用IP
http://106.14.39.65:8285/itip/client/
使用域名
http://dt.paireach.com/itip/client/</code></pre>
<h2 id="-">测试版</h2>
<pre><code>http://106.14.39.65:8285/itip/client/;</code></pre>
<p>参数都是字符串</p>
<h1 id="-">登陆</h1>
<pre><code>loginForDriver.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>driverPwd</td>
<td>密码MD5</td>
</tr>
<tr>
<td>deviceRoot</td>
<td>是否root</td>
</tr>
<tr>
<td>sdkVersion</td>
<td>系统版本号</td>
</tr>
<tr>
<td>androidID</td>
<td>androidID</td>
</tr>
<tr>
<td>macAddress</td>
<td>mac地址</td>
</tr>
<tr>
<td>manufacturer</td>
<td>设备厂商</td>
</tr>
<tr>
<td>model</td>
<td>设备型号</td>
</tr>
<tr>
<td>is4G</td>
<td>是否4g</td>
</tr>
<tr>
<td>wifiEnabled</td>
<td>wifi是否可用</td>
</tr>
<tr>
<td>networkOperatorName</td>
<td>移动网络运营商</td>
</tr>
<tr>
<td>imei</td>
<td>IMEI码</td>
</tr>
<tr>
<td>imsi</td>
<td>IMSI码</td>
</tr>
<tr>
<td>phoneType</td>
<td>获取手机状态信息</td>
</tr>
<tr>
<td>simOperatorName</td>
<td>sim卡运营商名称</td>
</tr>
<tr>
<td>phoneStatus</td>
<td>手机状态信息</td>
</tr>
<tr>
<td>simCardNo</td>
<td>sim序列号</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;loginResult&quot;: &quot;1&quot;,
    &quot;cpDriver&quot;: {
        &quot;id&quot;: 22104,
        &quot;code&quot;: &quot;22104&quot;,
        &quot;name&quot;: &quot;测试1&quot;,
        &quot;tel&quot;: &quot;18100000001&quot;,
        &quot;idCard&quot;: &quot;111111111111112&quot;,
        &quot;pwd&quot;: &quot;e10adc3949ba59abbe56e057f20f883e&quot;,
        &quot;driverCardUrl&quot;: &quot;71&quot;,
        &quot;logicState&quot;: 1,
        &quot;createDate&quot;: &quot;2017-04-11 15:57:04&quot;,
        &quot;createUser&quot;: &quot;admin&quot;,
        &quot;modifyDate&quot;: &quot;2017-03-23 15:51:05&quot;,
        &quot;modifyUser&quot;: &quot;admin&quot;,
        &quot;lastLoginTime&quot;: &quot;2017-04-12 11:17:43&quot;
    },
    &quot;remark&quot;: &quot;登录成功！！&quot;
}</code></pre>
<h1 id="-issafechecked-a">是否安全检查  isSafeChecked.a</h1>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;status&quot;: 0,
    &quot;msg&quot;: &quot;未提交安全检查&quot;
}</code></pre>
<h1 id="-">修改密码</h1>
<pre><code>changeDriverPwd.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>mobile</td>
<td>手机号</td>
</tr>
<tr>
<td>newPwd</td>
<td>密码</td>
</tr>
</tbody>
</table>
<p>MD5处理密码</p>
<pre><code>public static String getStringMD5(String string) throws Exception {
    byte[] hash;
    hash = MessageDigest.getInstance(&quot;MD5&quot;).digest(string.getBytes(&quot;UTF-8&quot;));
    StringBuilder hex = new StringBuilder(hash.length * 2);
    for (byte b : hash) {
        if ((b &amp; 0xFF) &lt; 0x10) hex.append(&quot;0&quot;);
        hex.append(Integer.toHexString(b &amp; 0xFF));
    }
    return hex.toString();
}</code></pre>
<p>返回数据</p>
<pre><code>{&quot;updateResult&quot;:&quot;0&quot;}</code></pre>
<blockquote>
<p>0：密码修改失败<br>1：密码修改成功</p>
</blockquote>
<h1 id="-3-tab-">运单中心3个tab请求说明</h1>
<p>运单中心的3个列表请求的接口相同，参数的key相同，只是<code>status</code>的值不同</p>
<table>
<thead>
<tr>
<th>status</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td>unabsorbed</td>
<td>待接收</td>
</tr>
<tr>
<td>distribution</td>
<td>配送中</td>
</tr>
<tr>
<td>complete</td>
<td>已完成</td>
</tr>
</tbody>
</table>
<h1 id="-">待接收列表</h1>
<pre><code>loadAllOrder.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>status</td>
<td>指定参数值： &quot;unabsorbed&quot;</td>
</tr>
</tbody>
</table>
<pre><code>{
    &quot;loadResult&quot;: &quot;1&quot;,
    &quot;orders&quot;: [
        {
            &quot;DC_ADDRESS&quot;: &quot;上海市市辖区&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100374&quot;,
            &quot;STATUS&quot;: &quot;212&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: null,
            &quot;SOURCE_NAME&quot;: &quot;上海吴泾DC CN57-4601 和 CN69-4601&quot;,
            &quot;DC_CODE&quot;: &quot;000000000200388&quot;,
            &quot;ID&quot;: 41425,
            &quot;TOTAL_WEIGHT&quot;: 7894.64,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;上海市闵行区吴泾镇通海路357号&quot;,
            &quot;DC_NAME&quot;: &quot;上海雷振实业有限公司&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;STATUS_NAME&quot;: &quot;司机未接收&quot;,
            &quot;CODE&quot;: &quot;40569021&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;卫辉市唐庄镇工业园区百威大道1号&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000206242&quot;,
            &quot;STATUS&quot;: &quot;212&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: null,
            &quot;SOURCE_NAME&quot;: &quot;延津县位邱烟酒批发部(马庄 航空）&quot;,
            &quot;DC_CODE&quot;: &quot;000000000100330&quot;,
            &quot;ID&quot;: 41338,
            &quot;TOTAL_WEIGHT&quot;: 542.8,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;延津县&quot;,
            &quot;DC_NAME&quot;: &quot;新乡工厂CN96-4700&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;BACK&quot;,
            &quot;STATUS_NAME&quot;: &quot;司机未接收&quot;,
            &quot;CODE&quot;: &quot;40569126&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;浙江省宁波市鄞州区鄞江镇凤凰山路98号&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100441&quot;,
            &quot;STATUS&quot;: &quot;212&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: null,
            &quot;SOURCE_NAME&quot;: &quot;慈溪市古塘展博食品批发部(陈武超)&quot;,
            &quot;DC_CODE&quot;: &quot;000000000100345&quot;,
            &quot;ID&quot;: 41274,
            &quot;TOTAL_WEIGHT&quot;: 0.1,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;慈溪市横河镇梅川西路133号&quot;,
            &quot;DC_NAME&quot;: &quot;宁波工厂CN18-1020&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;BACK&quot;,
            &quot;STATUS_NAME&quot;: &quot;司机未接收&quot;,
            &quot;CODE&quot;: &quot;40568931&quot;
        }
    ],
    &quot;msg&quot;: &quot;查询成功&quot;
}</code></pre>
<h1 id="-">配送中列表</h1>
<pre><code>loadAllOrder.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>status</td>
<td>指定参数值： &quot;distribution&quot;</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;loadResult&quot;: &quot;1&quot;,
    &quot;orders&quot;: [
        {
            &quot;DC_ADDRESS&quot;: &quot;上海市松江区玉秀路136号7幢A区&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100371&quot;,
            &quot;STATUS&quot;: &quot;220&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-04-02 10:36:44&quot;,
            &quot;SOURCE_NAME&quot;: &quot;上海乐惠DC CN57-1010 和 CN69-1010&quot;,
            &quot;DC_CODE&quot;: &quot;000000000213981&quot;,
            &quot;ID&quot;: 41433,
            &quot;TOTAL_WEIGHT&quot;: 15092,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;上海杨浦区军工路2390号&quot;,
            &quot;DC_NAME&quot;: &quot;上海茸辰酒业有限公司&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;STATUS_NAME&quot;: &quot;开始运输&quot;,
            &quot;CODE&quot;: &quot;40569291&quot;
        }
    ],
    &quot;msg&quot;: &quot;查询成功&quot;
}</code></pre>
<h1 id="-">已完成列表</h1>
<pre><code>loadAllOrder.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>status</td>
<td>指定参数值： &quot;complete&quot;</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;loadResult&quot;: &quot;1&quot;,
    &quot;orders&quot;: [
        {
            &quot;DC_ADDRESS&quot;: &quot;福建莆田涵江区工业路660号&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100371&quot;,
            &quot;STATUS&quot;: &quot;248&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-03-13 19:24:28&quot;,
            &quot;SOURCE_NAME&quot;: &quot;上海乐惠DC CN57-1010 和 CN69-1010&quot;,
            &quot;DC_CODE&quot;: &quot;000000000100075&quot;,
            &quot;ID&quot;: 14725,
            &quot;TOTAL_WEIGHT&quot;: 5124.8,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;上海杨浦区军工路2390号&quot;,
            &quot;DC_NAME&quot;: &quot;百威英博雪津啤酒有限公司&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;STATUS_NAME&quot;: &quot;已签收&quot;,
            &quot;CODE&quot;: &quot;40211404&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;上海市市辖区&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100374&quot;,
            &quot;STATUS&quot;: &quot;248&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-03-13 19:35:15&quot;,
            &quot;SOURCE_NAME&quot;: &quot;上海吴泾DC CN57-4601 和 CN69-4601&quot;,
            &quot;DC_CODE&quot;: &quot;000000000200360&quot;,
            &quot;ID&quot;: 14735,
            &quot;TOTAL_WEIGHT&quot;: 1420,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;上海市闵行区吴泾镇通海路357号&quot;,
            &quot;DC_NAME&quot;: &quot;上海市松江区泗泾镇桐桐食品经营部&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;STATUS_NAME&quot;: &quot;已签收&quot;,
            &quot;CODE&quot;: &quot;40249548&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;-&quot;,
            &quot;SOURCE_CODE&quot;: null,
            &quot;STATUS&quot;: &quot;248&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-03-13 20:23:27&quot;,
            &quot;SOURCE_NAME&quot;: null,
            &quot;DC_CODE&quot;: null,
            &quot;ID&quot;: 18242,
            &quot;TOTAL_WEIGHT&quot;: 3157.9,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;-&quot;,
            &quot;DC_NAME&quot;: null,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;STATUS_NAME&quot;: &quot;已签收&quot;,
            &quot;CODE&quot;: &quot;40099089&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;邢台市&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100343&quot;,
            &quot;STATUS&quot;: &quot;248&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-03-27 17:17:57&quot;,
            &quot;SOURCE_NAME&quot;: &quot;唐山工厂CN34-1000和CN68-1010&quot;,
            &quot;DC_CODE&quot;: &quot;000000000212342&quot;,
            &quot;ID&quot;: 41345,
            &quot;TOTAL_WEIGHT&quot;: 24634.8,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;唐山市丰南区迎宾路18号&quot;,
            &quot;DC_NAME&quot;: &quot;广宗县义兴烟酒超市&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;KA&quot;,
            &quot;STATUS_NAME&quot;: &quot;已签收&quot;,
            &quot;CODE&quot;: &quot;40569177&quot;
        },
        {
            &quot;DC_ADDRESS&quot;: &quot;宁波&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100337&quot;,
            &quot;STATUS&quot;: &quot;248&quot;,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-03-27 17:09:53&quot;,
            &quot;SOURCE_NAME&quot;: &quot;浙东DCCNK5-1010&quot;,
            &quot;DC_CODE&quot;: &quot;000000000204643&quot;,
            &quot;ID&quot;: 41419,
            &quot;TOTAL_WEIGHT&quot;: 6129,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;宁波市鄞县大道西段杉杉路88号空港物流园&quot;,
            &quot;DC_NAME&quot;: &quot;张平浩&quot;,
            &quot;TRANSPORT_CODE&quot;: &quot;KA&quot;,
            &quot;STATUS_NAME&quot;: &quot;已签收&quot;,
            &quot;CODE&quot;: &quot;40569286&quot;
        }
    ],
    &quot;msg&quot;: &quot;查询成功&quot;
}</code></pre>
<h1 id="-">请求所有运单</h1>
<table>
<thead>
<tr>
<th>说明</th>
<th>接口</th>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>请求所有运单</td>
<td>loadAllOrder.a</td>
<td>driverTel</td>
<td>手机号</td>
</tr>
</tbody>
</table>
<h1 id="-">第一个可以接收的运单</h1>
<table>
<thead>
<tr>
<th>说明</th>
<th>接口</th>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>第一个可以接收的运单</td>
<td>loadFirstUnCheckOrd.a</td>
<td>mobile</td>
<td>手机号</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;data&quot;: [
        {
            &quot;CODE&quot;: &quot;40569291&quot;,
            &quot;DC_ADDRESS&quot;: &quot;上海市松江区玉秀路136号7幢A区&quot;,
            &quot;DC_CODE&quot;: &quot;000000000213981&quot;,
            &quot;DC_NAME&quot;: &quot;上海茸辰酒业有限公司&quot;,
            &quot;DRIVER_ORDER_TIME&quot;: &quot;2017-04-02 10:36:44&quot;,
            &quot;ID&quot;: 41433,
            &quot;PLAN_ACHIEVE_TIME&quot;: &quot;-&quot;,
            &quot;PLAN_DELIVER_TIME&quot;: &quot;-&quot;,
            &quot;SOURCE_ADDR&quot;: &quot;上海杨浦区军工路2390号&quot;,
            &quot;SOURCE_CODE&quot;: &quot;000000000100371&quot;,
            &quot;SOURCE_NAME&quot;: &quot;上海乐惠DC CN57-1010 和 CN69-1010&quot;,
            &quot;STATUS&quot;: &quot;220&quot;,
            &quot;STATUS_NAME&quot;: &quot;开始运输&quot;,
            &quot;TOTAL_WEIGHT&quot;: 15092.00,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;
        }
    ],
    &quot;status&quot;: 1,
    &quot;type&quot;: &quot;distribution&quot;
}</code></pre>
<h1 id="-">根据单号获取商品详情</h1>
<pre><code>loadDetailByTelAndCode.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>userName</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
</tbody>
</table>
<p>返回数据:已常规为例</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;orders&quot;: [
        {
            &quot;TOT_PCE&quot;: 0,
            &quot;TO_PKUP_DTT&quot;: &quot;2017-03-28 23:59:00&quot;,
            &quot;enable&quot;: null,
            &quot;TO_SHPG_LOC_NAME&quot;: &quot;上海茸辰酒业有限公司&quot;,
            &quot;LOAD_OUT_FACTORY_TIME&quot;: null,
            &quot;TRUCK_NUM&quot;: &quot;A00001&quot;,
            &quot;UNLOAD_OUT_FACTORY_TIME&quot;: null,
            &quot;LOAD_INTO_FACTORY_TIME&quot;: null,
            &quot;FRM_SHPG_ADDR_ID&quot;: 249453,
            &quot;SHPM_STATUS_NAME&quot;: &quot;开始运输&quot;,
            &quot;CRTD_DTT&quot;: &quot;2017-03-27 16:34:05&quot;,
            &quot;FRM_PKUP_DTT&quot;: &quot;2017-03-28 00:00:00&quot;,
            &quot;SHPM_NUM&quot;: &quot;1004442231&quot;,
            &quot;isEmpty&quot;: 0,
            &quot;LD_LEG_ID&quot;: &quot;40569291&quot;,
            &quot;ID_CARD&quot;: null,
            &quot;APPOINTMENT_END_TIME&quot;: &quot;05:00:00&quot;,
            &quot;ID&quot;: 1295,
            &quot;BW_WGT&quot;: 15092,
            &quot;UNLOAD_INTO_FACTORY_TIME&quot;: null,
            &quot;BS_LDN_LEN&quot;: 0,
            &quot;TO_SHPG_ADDR&quot;: &quot;上海市松江区玉秀路136号7幢A区&quot;,
            &quot;UNLOAD_SIGNIN_TIME&quot;: null,
            &quot;TRANSPORT_CODE&quot;: &quot;COMMON&quot;,
            &quot;FRM_SHPG_LOC_CD&quot;: &quot;000000000100371&quot;,
            &quot;LOAD_SIGNIN_TIME&quot;: null,
            &quot;RFRC_NUM1&quot;: &quot;10030258&quot;,
            &quot;TO_SHPG_ADDR_ID&quot;: 259170,
            &quot;DRIVER_ACCEPT_TIME&quot;: &quot;2017-04-02 10:36:44&quot;,
            &quot;ORDER_CODE&quot;: &quot;40569291&quot;,
            &quot;TO_DLVY_DTT&quot;: &quot;2017-04-17 23:59:00&quot;,
            &quot;SHPM_STATUS&quot;: &quot;220&quot;,
            &quot;CDTY_CD&quot;: &quot;FG_PLT&quot;,
            &quot;TRUCK_TYPE&quot;: &quot;17.5米厢车&quot;,
            &quot;APPOINTMENT_START_TIME&quot;: &quot;09:00:00&quot;,
            &quot;DRIVER_NAME&quot;: &quot;测试1&quot;,
            &quot;DRIVER_MOBILE&quot;: &quot;18100000001&quot;,
            &quot;CMPDDROPARVL_DTT&quot;: null,
            &quot;UPDT_DTT&quot;: &quot;2017-03-27 16:35:33&quot;,
            &quot;TO_SHPG_LOC_CD&quot;: &quot;000000000213981&quot;,
            &quot;FRM_DLVY_DTT&quot;: &quot;2017-03-28 00:01:00&quot;,
            &quot;TOT_SKID&quot;: 14,
            &quot;FRM_SHPG_ADDR&quot;: &quot;上海杨浦区军工路2390号&quot;,
            &quot;FRM_SHPG_LOC_NAME&quot;: &quot;上海乐惠DC CN57-1010 和 CN69-1010&quot;
        }
    ],
    &quot;msg&quot;: &quot;查询成功&quot;
}</code></pre>
<h1 id="-">根据主单单号查询主单+子单信息</h1>
<table>
<thead>
<tr>
<th>接口</th>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>queryOrderJoinList.a</td>
<td>userName</td>
<td>手机号</td>
</tr>
<tr>
<td>--</td>
<td>orderCode</td>
<td>单号</td>
</tr>
</tbody>
</table>
<h1 id="-">接收运单</h1>
<pre><code>driverAcceptOrder.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>userName</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>单号</td>
</tr>
<tr>
<td>orderCodes</td>
<td>负载单号合集字符串，以,拼接</td>
</tr>
<tr>
<td>isAgree</td>
<td>“1”表示接受，“0”表示拒绝接收</td>
</tr>
</tbody>
</table>
<p>去掉而拒绝接受，现在都是传 “1”</p>
<p>返回值：</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;接单成功&quot;
}</code></pre>
<h1 id="-">签到</h1>
<pre><code>orderHandling.a</code></pre>
<p>签到分：装货工厂签到和收货工厂签到，请求的参数<code>type</code>的值不同。</p>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>userName</td>
<td>司机姓名</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>shpmNum</td>
<td>交货单号</td>
</tr>
<tr>
<td>type</td>
<td>&quot;FRM&quot;:装货工厂签到；&quot;TO&quot;：收货工厂签到</td>
</tr>
</tbody>
</table>
<p>返回数据：</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;签到成功&quot;
}</code></pre>
<p>收货工厂签到有10分钟限制：离开装货工厂10分钟内不许签到；10分钟后才可以签到。</p>
<pre><code>{
    &quot;status&quot;: 4,
    &quot;msg&quot;: &quot;装货离厂不到十分钟，不能做收货签到操作&quot;
}</code></pre>
<h1 id="-">进入装货工厂：</h1>
<pre><code>loadingPlant.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号码</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;入厂成功&quot;
}</code></pre>
<h1 id="-">出装货工厂：</h1>
<pre><code>exFactory.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号码</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
</tbody>
</table>
<p>入厂到出厂时长有10分钟限制<br>当不到10分钟时，返回：</p>
<pre><code>{
    &quot;status&quot;: 4,
    &quot;msg&quot;: &quot;入厂不到十分钟，不能做离厂操作&quot;
}</code></pre>
<p>当超过10分钟时，返回：</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;出厂成功&quot;
}</code></pre>
<h1 id="-">发送地理围栏警报</h1>
<pre><code>saveFenceAlarmInfo.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>参数说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>monitored_person</td>
<td>&#39;被监控对象的entity_name&#39;</td>
</tr>
<tr>
<td>action</td>
<td>&#39;动作信息CODE：1：进入围栏 2：离开围栏&#39;,</td>
</tr>
<tr>
<td>time</td>
<td>触发报警时间&#39;</td>
</tr>
<tr>
<td>fence_id</td>
<td>围栏 id</td>
</tr>
<tr>
<td>fence_name</td>
<td>围栏名称</td>
</tr>
<tr>
<td>lng</td>
<td>经度</td>
</tr>
<tr>
<td>lat</td>
<td>纬度</td>
</tr>
<tr>
<td>coord_type</td>
<td>坐标系，国内为百度坐标系：bdll90；国外均为 wgs84坐标系：wgs84&#39;</td>
</tr>
<tr>
<td>radius</td>
<td>定位精度，单位：米</td>
</tr>
<tr>
<td>pre_lng</td>
<td>上一个定位点经度</td>
</tr>
<tr>
<td>pre_lat</td>
<td>上一个定位点纬度</td>
</tr>
<tr>
<td>pre_time</td>
<td>上一个定位点定位时间</td>
</tr>
<tr>
<td>pre_radius</td>
<td>上一个定位点定位精度</td>
</tr>
</tbody>
</table>
<h1 id="-">进入收货工厂：</h1>
<pre><code>receivingPlant.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>shpmNum</td>
<td>交货单号</td>
</tr>
<tr>
<td>flag</td>
<td>true/false</td>
</tr>
</tbody>
</table>
<p>返回数据</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;入厂成功&quot;
}</code></pre>
<h1 id="-receivingdelivery-a">出收货工厂：receivingDelivery.a</h1>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>shpmNum</td>
<td>交货单号</td>
</tr>
<tr>
<td>flag</td>
<td>String：&quot;true&quot;/&quot;false&quot;</td>
</tr>
</tbody>
</table>
<p>也有10分钟限制</p>
<pre><code>{
    &quot;status&quot;: 4,
    &quot;msg&quot;: &quot;收货入厂不到十分钟，不能做继续操作&quot;
}</code></pre>
<h1 id="-">异常签收</h1>
<p>收货离厂/收货签到页面的每一个运单的异常签收</p>
<pre><code>rejectSign.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>shpmNum</td>
<td>交货单号</td>
</tr>
</tbody>
</table>
<p>返回结果</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;已拒绝签收&quot;
}</code></pre>
<h1 id="-safeverisave-a">安全检查：safeVeriSave.a</h1>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>isChecked1</td>
<td>true/false</td>
</tr>
<tr>
<td>isChecked2</td>
<td>true/false</td>
</tr>
<tr>
<td>以此类推</td>
</tr>
</tbody>
</table>
<h1 id="-">服务评价</h1>
<p>走完“出厂确认”后进入“服务评价”界面，只有常规才有评价。</p>
<pre><code>submissionEvaluation.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>factoryTe</td>
<td>处理效率分数</td>
</tr>
<tr>
<td>factorySa</td>
<td>服务态度评价</td>
</tr>
<tr>
<td>loadTs</td>
<td>处理流程评价</td>
</tr>
</tbody>
</table>
<p>返回结果</p>
<pre><code>{
    &quot;status&quot;: 1,
    &quot;msg&quot;: &quot;评价成功&quot;
}</code></pre>
<p>下面的获取 回空单列表表和确认回空按钮，因为操作的运单没有回空单，所有没有返回数据。</p>
<h1 id="-">获取回空单信息：</h1>
<pre><code>emptyOrderDetail.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>orderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>loc</td>
<td>TO_SHPG_LOC_CD字段</td>
</tr>
</tbody>
</table>
<h1 id="-">回空确认按钮：</h1>
<pre><code>emptySingleScheduling.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>userName</td>
<td>名字</td>
</tr>
<tr>
<td>oldOrderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>oldShpmNum</td>
<td>交付单号</td>
</tr>
<tr>
<td>orderCode</td>
<td>回空单负载单号，字段：ldLegId</td>
</tr>
<tr>
<td>nums</td>
<td>车辆牌号</td>
</tr>
<tr>
<td>types</td>
<td>车辆类型</td>
</tr>
</tbody>
</table>
<h1 id="-">回空取消按钮：</h1>
<pre><code>emptyCancel.a</code></pre>
<table>
<thead>
<tr>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>driverTel</td>
<td>手机号</td>
</tr>
<tr>
<td>oldOrderCode</td>
<td>负载单号</td>
</tr>
<tr>
<td>oldShpmNum</td>
<td>交付单号</td>
</tr>
</tbody>
</table>

</body>
</html>
<!-- This document was created with MarkdownPad, the Markdown editor for Windows (http://markdownpad.com) -->
